﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ZSZ.Service;

namespace ServiceTests
{
    [TestClass]
    public class UnitTestAdminLog
    {
        [TestMethod]
        public void TestAddNew()
        {
            AdminLogService service = new AdminLogService();
            long id = service.AddNew(1, "test message");
            var log = service.GetById(id);
            Assert.AreEqual(log.Message, "test message");
        }
    }
}
